﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DeklaritModel.PaisDataSet>" %>
	
	<table class="data-table" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
            <%		bool? prompt = (bool?)ViewData["Prompt"];
					if (prompt ?? false){	%>
                <th class="actions">
                </th>
            <%		}else{	%>
                <th class="actions">
                </th>
                <th class="actions">
                </th>
                <th class="actions">
                </th>
            <%		}	%>
                <th>
                    Nombre
                </th>
                <th>
                    Moneda
                </th>
            </tr>
        </thead>
        <tbody>
            <%	string[] pk = new string[]{"PaisId"};
				string[] returnItems = (string[])ViewData["ReturnItems"];
            	foreach (DeklaritModel.PaisDataSet.PaisRow row in Model.Pais)
				{ %>
            <tr>
            <%		if (prompt ?? false){	%>
                <td class="actions">
                    <a href="<%= MVCApplication.Helpers.PromptHelper.JavaScriptUrl(pk, returnItems, row) %>">
                        <img src="<%= (string)Session["ThemePath"] %>Images/select.gif" style="cursor:pointer" border="0" alt="<%= Deklarit.Resources.Resources.captionSelectweb %>" title="<%= Deklarit.Resources.Resources.captionSelectweb %>" /></a>
                </td>
            <%		}else{	%>
                <td class="actions">
                    <a href='<%= Url.Action("Edit", new {PaisId = row.PaisId}) %>'>
                        <img src="<%= (string)Session["ThemePath"] %>Images/Edit.gif" style="cursor:pointer;" border="0" alt="<%= Deklarit.Resources.Resources.captionUpdateweb %>" title="<%= Deklarit.Resources.Resources.captionUpdateweb %>" /></a>
                </td>
                <td class="actions">
                    <a href='<%= Url.Action("Display", new {PaisId = row.PaisId}) %>'>
                        <img src="<%= (string)Session["ThemePath"] %>Images/Display.gif" style="cursor:pointer;" border="0" alt="<%= Deklarit.Resources.Resources.captionDisplayweb %>" title="<%= Deklarit.Resources.Resources.captionDisplayweb %>" /></a>
                </td>
                <td class="actions">
                    <a href='<%= Url.Action("Delete", new {PaisId = row.PaisId}) %>'>
                        <img src="<%= (string)Session["ThemePath"] %>Images/Delete.gif" style="cursor:pointer" border="0" alt="<%= Deklarit.Resources.Resources.captionDeleteweb %>" title="<%= Deklarit.Resources.Resources.captionDeleteweb %>" /></a>
                </td>
            <%		}	%>
                <td>
                    <%= Html.Encode(row.PaisNombre) %>
                </td>
                <td>
                    <%= Html.Encode(row.PaisMoneda) %>
                </td>
            </tr>
<%	}	%>
                <tr>
                    <td colspan="<%= (prompt ?? false) ? 3 : 5 %>" align="right">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
								<td class="nowrapClass" style="border-style:none;"><%= ViewData["PagerText"] %></td>
                    <%  if (!(bool)ViewData["isFirstPage"])
                        {   %>
                                <td style="border-style:none;padding:0;"><a href="#" onclick="goToPage(1)">&lt;&lt;</a></td>
                                <td style="border-style:none;padding:1;"><a href="#" onclick="goToPage(<%= (int)ViewData["currentPage"] - 1 %>)">&lt;</a></td>
                    <%  }
                        if (!(bool)ViewData["isLastPage"])
                        {   %>
                                <td style="border-style:none;padding:0;"><a href="#" onclick="goToPage(<%= (int)ViewData["currentPage"] + 1 %>)">&gt;</a></td>
                                <td style="border-style:none;padding:1;"><a href="#" onclick="goToPage(<%= ViewData["lastPage"] %>)">&gt;&gt;</a></td>
                    <% } %>
                            </tr>
                        </table>
                    </td>
                </tr>                   
        </tbody>
    </table>
<input id="RowIndex" name="RowIndex" type="hidden" value="" />
<input id="CurrentPage" name="CurrentPage" type="hidden" value="" />
<input id="ExpandRecords" name="ExpandRecords" type="hidden" value="" />
<input id="TotalRecords" name="TotalRecords" type="hidden" value="<%= ViewData["TotalRecords"] %>" />
<%= Html.Hidden("FillByMethod")%>
<%= Html.Hidden("FilterValues")%>